package org.yufan.stock.bean;


import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 原始库存表
 * Created by zxd on 2019/8/10
 **/
@Table(name = "yf_stock")
@Data
public class Stock {

    /**
     * 商品id  电商填写skuId 酒店填写roomTypeId
     */
    @Id
    private Long productId;
    /**
     * 商品类型  1.普通商品  2.酒店  3.旅游
     */
    private Integer productType;
    /**
     * 库存
     */
    private Integer stock;

    private Date created;

    private Date update;


}